<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>录入信息并回显</title>
</head>
<body>
<form method="post" action="${pageContext.request.contextPath}/Servlet5">
    <label for="a">文本框</label>
    <input type="text" id="a" name="a" value="${A}"/>
    <br/>
    <label for="b">多选框</label>
    <input type="checkbox" id="b" name="b" value="1" ${BL.contains("1")?"checked":""}/>
    <input type="checkbox" name="b" value="2" ${BL.contains("2")?"checked":""}/>
    <input type="checkbox" name="b" value="3" ${BL.contains("3")?"checked":""}/>
    <br/>
    <label for="c1">单选框 4</label>
    <input type="radio" id="c1" name="c" value="4" ${"4".equals(C)?"checked":""}/>
    <label for="c2">单选框 5</label>
    <input type="radio" id="c2" name="c" value="5" ${"5".equals(C)?"checked":""}/>
    <br/>
    <label for="d">下拉框</label>
    <select name="d" id="d">
        <option value="6" ${"6".equals(D)?"selected":""}>6</option>
        <option value="7" ${"7".equals(D)?"selected":""}>7</option>
        <option value="8" ${"8".equals(D)?"selected":""}>8</option>
    </select>
    <br/>
    <input type="submit" value="提交">
</form>
<p>a:${A}</p>
<p>b:${BL}</p>
<p>c:${C}</p>
<p>d:${D}</p>
</body>
</html>
